<div id="left_side">
	<div id="chords_artist">
		<h2>
			<?php echo $dataResult{0}->artist_name;?>			
		</h2>
		<div class="chordsAlbumList">
			<ul>
			<?php 
				$dataChords = array();
				$album_arr = array();
				$album_num = 0;
			?>
			<?php foreach($dataResult as $key => $value):?>
				<?php if(!in_array($value->album_name,$album_arr)):?>
					<?php if($album_num != 0 && $album_num%4 == 0) echo "</ul><ul>";?>
					<li>
						<a href="javascript:void(0);" onclick="javascript:chords_album_active('album_name_<?php echo $key;?>')">
							<div class="image">
								<?php echo exec_image(array(
									'folder' => ($value->song_id != NULL ? 'album':'chords'),
									'dimension' => '120x120',
									'file_name' => @$value->album_file_name.'.'.@$value->album_file_ext,
									'alt' => ''.@$dataResults->song_name.'',	
									'title' => ''.@$dataResults->song_name.''	
									)
								);?>							
							</div>
							<span><?php echo $value->album_name;?></span>
						</a>
					</li>
					<?php $album_num++;?>
					<?php $album_arr[] = $value->album_name;?>
					<?php $dataChords[$value->album_name][] = $value;?>
				<?php else:?>
					<?php $dataChords[$value->album_name][] = $value;?>
				<?php endif;?>
			<?php endforeach;?>
			</ul>
		</div>
		<?php $indexAt = 0;?>
		<?php foreach($dataChords as $key => $value):?>
		<div id="album_name_<?php echo $indexAt;?>" <?php echo ($key == $dataResult{0}->album_name ? '':'style="display:none;"');?>>
			<h3>อัลบั้ม <?php echo $value{0}->album_name;?></h3>
			<div class="chords_list">
				<ul>
				<?php foreach($value as $items):?>
					<li>
						<a class="_player" href="<?php echo base_url().'play/'.$items->chords_id.'-'.seo_url($items->song_name);?>" target="_blank">
							<div class="image">
								<?php echo exec_image(array(
									'folder' => ($items->song_id != NULL ? 'album':'chords'),
									'dimension' => '45x45',
									'file_name' => @$items->album_file_name.'.'.@$items->album_file_ext,
									'alt' => ''.@$dataResults->song_name.'',	
									'title' => ''.@$dataResults->song_name.''	
									)
								);?>
							</div>
							<div class="description">
								<div class="songName"><?php echo $items->song_name;?></div>
							</div>
						</a>
						<a class="artistName" href="<?php echo base_url().'artist/'.seo_url($items->artist_name);?>" target="_blank"><?php echo $items->artist_name;?></a>	
					</li>
				<?php endforeach;?>
				</ul>
			</div>
		</div>
		<?php $indexAt++;?>
		<?php endforeach;?>		
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<div class="clear">
</div>